package com.atguigu.springcloud.myrule;

import com.netflix.loadbalancer.IRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author wangcan
 * 不能和主配置类在同一个包下及其子包下
 * @date 2019/12/1 -16:15
 */
@Configuration
public class MyselfRule {
    @Bean
    public IRule myRule(){
//        return new RandomRule();
        return new RandomRule_ZY();
    }
}
